package com.wxb.service.impl;

import com.wxb.domain.MallAddressEntity;
import com.wxb.mapper.MallAddressMapper;
import com.wxb.service.IMallAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @Date 2025-06-05 11:07
 * @Version 1.0
 * @Description
 * @ClassName MallAddressServiceImpl
 **/
@Service
public class MallAddressServiceImpl implements IMallAddressService {
    @Resource
    private MallAddressMapper addressDao;

    public MallAddressEntity queryObject(Integer id) {
        return addressDao.queryObject(id);
    }


    public List<MallAddressEntity> queryList(Map<String, Object> map) {
        return addressDao.queryList(map);
    }


    public int queryTotal(Map<String, Object> map) {
        return addressDao.queryTotal(map);
    }


    public void save(MallAddressEntity address) {
        addressDao.save(address);
    }


    public void update(MallAddressEntity address) {
        addressDao.update(address);
    }


    public void delete(Integer id) {
        addressDao.delete(id);
    }


    public void deleteBatch(Integer[] ids) {
        addressDao.deleteBatch(ids);
    }
}
